package indi.liudalei.biology.base.controller;

import indi.liudalei.biology.base.entity.po.BiologyPo;
import indi.liudalei.biology.base.service.BiologyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author liudalei
 * @version 1.0.0
 * @date 2018/2/9
 * @description 生物详情列表
 */
@RestController
@RequestMapping("/biology")
public class BiologyController {
    @Autowired
    private BiologyService biologyService;
    @RequestMapping("/children")
    public List<BiologyPo> getBiologyListByParentId(Integer parentId)
    {
        return biologyService.getBiologyList(parentId);
    }
}
